package com.etc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ThymeleafController {

    @RequestMapping("th_{viewname}")
    public String thymelaf(@PathVariable("viewname") String viewname) {

        return viewname;
    }

    @RequestMapping("acedemo/ace_{viewname}")
    public String acedemothymelaf(@PathVariable("viewname") String viewname) {

        return "acedemo/" + viewname;
    }
}
